package Binary;

public class HexDemo {
    public static void main(String[] args) {
        int a = 0x2fd47b;
        int b = 0b11_0101_0110_0011_1010_1101;
        System.out.println(Integer.toBinaryString(a));
        System.out.println(Integer.toBinaryString(b));

        System.out.println(Integer.toHexString(a));
        System.out.println(Integer.toHexString(b));
    }
}
